package com.mikgonz.farkle.server;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@Unindexed
public class Friendship {

	@Id
	private Long id;
	@Indexed
	private String originalName;
	@Indexed
	private String otherName;
	private Long originalUserId;
	private Long otherUserId;

	public Friendship() {
	}

	public Friendship(String originalName, Long originalUserId,
			String otherName, Long otherUserId) {
		super();
		this.originalName = originalName;
		this.otherName = otherName;
		this.originalUserId = originalUserId;
		this.otherUserId = otherUserId;
	}

	public Long getId() {
		return id;
	}
	
	 public String getIdAsString(){
		 return Long.toString(id);
	 }

	public String getOriginalName() {
		return originalName;
	}

	public void setOriginalName(String originalName) {
		this.originalName = originalName;
	}

	public String getOtherName() {
		return otherName;
	}

	public void setOtherName(String otherName) {
		this.otherName = otherName;
	}

	public Long getOriginalUserId() {
		return originalUserId;
	}

	public void setOriginalUserId(Long originalUserId) {
		this.originalUserId = originalUserId;
	}

	public Long getOtherUserId() {
		return otherUserId;
	}

	public void setOtherUserId(Long otherUserId) {
		this.otherUserId = otherUserId;
	}

}
